package org.sith.gl.taskmanager.client.tasks;

import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.datepicker.client.DatePicker;
import org.sith.gl.taskmanager.client.beans.UserEntityGWT;

import java.util.List;


class FormWidgets {
    private final UserEntityGWT addedBy;
    private final ListBox usersList;
    private final List<UserEntityGWT> users;
    private final TextBox desc;
    private final DatePicker creationDatePicker;
    private final DatePicker dueDatePicker;
    private final PopupPanel popupPanel;

    FormWidgets(UserEntityGWT addedBy, ListBox usersList, List<UserEntityGWT> users, TextBox desc, DatePicker creationDatePicker, DatePicker dueDatePicker, PopupPanel popupPanel) {
        this.addedBy = addedBy;
        this.usersList = usersList;
        this.users = users;
        this.desc = desc;
        this.creationDatePicker = creationDatePicker;
        this.dueDatePicker = dueDatePicker;
        this.popupPanel = popupPanel;
    }

    public UserEntityGWT getAddedBy() {
        return addedBy;
    }

    public ListBox getUsersList() {
        return usersList;
    }

    public List<UserEntityGWT> getUsers() {
        return users;
    }

    public TextBox getDesc() {
        return desc;
    }

    public DatePicker getCreationDatePicker() {
        return creationDatePicker;
    }

    public DatePicker getDueDatePicker() {
        return dueDatePicker;
    }

    public PopupPanel getPopupPanel() {
        return popupPanel;
    }

    
}
